import request from '@/utils/request'

// 获取验证码
export function getCaptchaImage()  {
    return request({
        url: 'login/captcha?type=1',
    })
}

// 登录
export function login(formData)  {
    return request({
        method:'post',
        url: '/login',
        data:formData
    })
}

// 获取菜单路由
export function getMenuRouter()  {
    return request({
        method:'post',
        url: 'admin/menu/getMenuRouter'
    })
}

// 退出登录
export function lougout()  {
    return request({
        method:'post',
        url: '/logout'
    })
}


// 获取用户信息
export function getCurrUserInfo()  {
    return request({
        method:'post',
        url: '/admin/user/getCurrUserInfo'
    })
}